<?php
$request = Zend_Controller_Front::getInstance()->getRequest();
$action = $request->getActionName();
$controller = $request->getControllerName();

?>
<div id="sidebar">
    <div id="sidebar-wrapper"> <!-- Sidebar with logo and menu -->

        <h1 id="sidebar-title"><a href="/"> Admin</a></h1>

        <!-- Logo (221px wide) -->
        <a href="/"><img id="logo" src="pictures/logo.png" alt="Simpla Admin logo"/></a>

        <ul id="main-nav">  <!-- Accordion Menu -->

            <li>
                <a href="/admin" class="nav-top-item <?= $controller == 'admin' || $controller == 'delivery' ? 'current' : ''  ?>">
                    Admin module
                </a>
                <ul>
                    <li><a href="/delivery">Delivery system</a></li>
                    <li><a href="/admin/email">Change email</a></li>

                </ul>
            </li>

             <li>
                <a href="/pages" class="nav-top-item <?= $controller == 'pages' ? 'current' : ''  ?>">
                    Pages
                </a>
                <ul>
<!--                    <li><a href="/pages/add">Add a page</a></li>-->
                    <li><a href="/pages">Pages management</a></li>

                </ul>
            </li>

            <li>
                <a href="/quests" class="nav-top-item <?= $controller == 'quests' ? 'current' : ''  ?>">
                    Quests
                </a>
                <ul>
                    <li><a href="quests/add">Add new</a></li>
                    <li><a href="quests">Management quests</a></li>

                </ul>
            </li>

            <li>
                <a href="/users" class="nav-top-item <?= $controller == 'users' ? 'current' : ''  ?>">
                    Users
                </a>
                <ul>
                    <li><a href="users">View users</a></li>

                </ul>
            </li>
            
        </ul>


        <!-- End #main-nav -->

        <!-- End #messages -->

    </div>
</div> <!-- End #sidebar -->